<?	


$novedades = $db->get_results("SELECT * FROM novedades WHERE 1=1 ORDER BY ctime DESC");


?>

	<div class="levels-active">
		<?	foreach ($niveles as $k => $v): ?>
			<a href="/site/<?=$k?>/" class="<?=$k?>"><?=$v?></a>
		<?	endforeach; ?>
	</div>

	<div class="institucional-content historial-list">

		<h1>Historial de Novedades</h1>

		<div class="submenu">
			<ul>
				<?	if ($novedades)
						foreach ($novedades as $v): 
				?>
				<li>
					<span class="date"><?=date("d.m.y", strtotime($v['ctime']))?></span>
					<h2><?=$v['titulo']?></h2>
					<p><a href="/site/novedades/ver/<?=$v['id_novedad']?>/<?=urlencode($v['titulo'])?>/">VER NOTA</a></p>
				</li>
				<?		endforeach; ?>
			</ul>
		</div>

	</div>
